<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

class sliderTabs extends CWidget {

	public function run() {
		$criteria = new CDbCriteria();
		$criteria->select = '"pageId", "pageDescription", "pageTitle", "pageUrl"';
		$criteria->order = '"pageSort"';
		$criteria->compare('"pageType"', 'category');
                $criteria->addCondition('"pageUrl" !=' . "'remont-kompyuterov'");
		$criteria->compare('"pageSourceId"', 1);
		$criteria->compare('"pageActive"', 1);
		
		$models = Page::model()->findAll($criteria);
		// $models = CHtml::listData($models, '"pageId"', '"pageTitle"');
		
		$this->render('slidertabs', array('models' => $models));
	}

}
